package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据菜品id查询对应的套餐id
     * @param ids
     * @return
     */
    List<Long> getSetmealIdsByDishIds(List<Long> ids);


    void insertBatch(List<SetmealDish> setmealDishes);

    List<SetmealDish> getByDishId(Long id);

    void deleteDish(Long id);

    Setmeal getById(Long id);


}
